<script type="text/javascript" src="views/parkLotCenter/facilitiesManage/js/parkOrgpar.js"></script>
<script>
    var parOrg = null;
    $(document).ready(function() {
        parOrg = new parkOrgparJs($("#parOrgparkDiv"));
    });
    function standardInformationGetAll(t) {
        $(t).parents('table').find('input[type=checkbox]').prop('checked', t.checked);
    }
</script>
<div id="parOrgparkDiv" style="height:100%;">
    <!---  start切换内容  --->
    <div class="basicInfoContent-panel" style="height:calc(100% - 65px);background-color: #f0f0f0;overflow-y:auto">
        <div class="basicInfo-box">
            <div class="list">
                <div class="list-text">
                    <label>分区编号：</label>
                    <input class="k-textbox input-info" type="text" disabled="disabled" id="oid" placeholder="系统自动生成..." data-bind="value:organizationCode" />
                    <input class="k-textbox input-info" type="hidden" data-bind="value:organizationTypeCode" />
                    <input class="k-textbox input-info" type="hidden" data-bind="value:orgLevel" />
                    <input class="k-textbox input-info" type="hidden" data-bind="value:parentCode" />
                </div>
                <div class="list-text">
                    <label>分区名称：</label>
                    <input class="k-textbox input-info" type="text" data-bind="value:organizationName" pattern="^[\u4E00-\u9FA5A-Za-z0-9]+$" validationMessage="检测到特殊字符" required/>
                </div>
                <div class="list-text" style="width:680px;">
                    <label>分区简称：</label>
                    <input class="k-textbox input-info" type="text" data-bind="value:equipmentManagements_basic_parkingNameForShort" pattern="^[\u4E00-\u9FA5A-Za-z0-9]+$" validationMessage="检测到特殊字符"/>
                </div>
                <div class="list-text">
                    <label>启用日历：</label>
                    <div class="switch-button">
                        <div class="checkbox">
                            <input type="checkbox" id="calflag" data-bind="value:equipmentManagements_charge_calTypeFlag"/>
                            <label></label>
                        </div></div>
                </div>
<!--                 <div class="list-text"> -->
<!--                     <label>区分车型：</label> -->
<!--                     <div class="switch-button"> -->
<!--                         <div class="checkbox"> -->
<!--                             <input type="checkbox" id="difflag" data-bind="value:equipmentManagements_charge_parkingDif"/> -->
<!--                             <label></label> -->
<!--                         </div></div> -->
<!--                 </div><br /> -->
<!--                 <div class="list-text" id="one"> -->
<!--                     <label>工作日收费标准：</label> -->
<!--                     <input type="text" style="width:250px" id="workingDaysStandard" data-bind="value:equipmentManagements_charge_workingDaysStandard"> -->
<!--                 </div> -->
<!--                 <div class="list-text" id="two"> -->
<!--                     <label>节假日收费标准：</label> -->
<!--                     <input type="text" style="width:250px" id="holidaySeasonStandard" data-bind="value:equipmentManagements_charge_holidaySeasonStandard"> -->
<!--                 </div><br /> -->
                <div class="list-text" id="three">
                    <label>收费标准：</label>
                    <div class="workRecord-info" style="width:670px;display:inline-block;">
                        <div style="height:156px; overflow:auto;">
<!--                             <div class="charge-title"> -->
<!--                                 <a data-bind="click:createRow"><img src="images/icon_addTo.png" />新增</a> -->
<!--                                 <a data-bind="click:deleteRow"><img src="images/icon_delTo.png" />删除</a> -->
<!--                             </div> -->
                            <table width="100%" id="charge_list" class="parlist">
                                <thead>
                                <tr>
<!--                                     <th width="3%"><input type="checkbox" onclick="standardInformationGetAll(this)" /></th> -->
                                    <th width="18%" style="text-align:center;">车型类型</th>
                                    <th width="18%" style="text-align:center;">收费标准</th>
                                    <th width="18%" style="text-align:center;">节假日收费标准</th>
                                    <th width="18%" style="text-align:center;">工作日收费标准</th>
                                    <th width="26%" style="text-align:center;">月租收费标准</th>
                                    <th width="26%" style="text-align:center;">开闸方式</th>
                                </tr>
                                </thead>
                                <tbody></tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="list-text">
                    <label>车位设置：</label>
                    <div class="workRecord-info" style="width:670px;display:inline-block;">
                        <table width="100%" id="carType_list" class="parlist">
                            <thead>
                            <tr>
                                <th width="18%">车位类型名</th>
                                <th width="20%">车位数量</th>
                                <th width="20%">计入总车位</th>
                                <th width="20%">计入余数车位</th>
                                <th width="20%">临时调整车位</th>
                            </tr>
                            </thead>
                            <tbody></tbody>
                        </table>
                    </div>
                </div>
                <div class="list-text" id="access">
                    <label>进出控制：</label>
                    <div class="workRecord-info" style="width:670px;display:inline-block;">
                        <div style="height:156px; overflow:auto;">
                            <table width="100%" id="access_list" class="parlist">
                                <thead>
                                <tr>
                                    <th width="26%" style="text-align:center;">工作站</th>
                                    <th width="26%" style="text-align:center;">通道</th>
                                    <th width="15%" style="text-align:center;">允许重复进出</th>
                                    <th width="15%" style="text-align:center;">允许进出</th>
                                    <th width="15%" style="text-align:center;">满位限入</th>
                                </tr>
                                </thead>
                                <tbody></tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="list-text">
                    <label>备注：</label>
                    <textarea class="k-textbox" rows="4" cols="93" style="width:670px;resize: none;" data-bind="value:equipmentManagements_basic_remark"></textarea>
                </div>
            </div>
        </div>
    </div>
    <div class="basicInfo-btn" style="border-top:1px solid #c5c5c5">
        <button class="save" data-bind="click:saveparOrg">确定</button>
        <button class="cancel" data-bind="click:cancel">取消</button>
    </div>
</div>